package com.rybbaby.tss.front.tssMemberReturnClassRecord.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author 雷春琼
 * @description 会员退班记录表
 * @createDate 2017-08-24 下午2:45:23
 */
@Entity
@Table(name = "tss_member_return_class_record")
@DynamicUpdate(true)
@DynamicInsert(true)
public class TssMemberReturnClassRecord implements Serializable {

    private static final long serialVersionUID = 321615837718857L;

    /**
     * 主键
     **/
    private String id;
    /**
     * 会员Id
     **/
    private String memberId;
    /**
     * 退班类型
     **/
    private Integer returnType;
    /**
     * 报班id
     **/
    private String attendClassId;
    /**
     * 创建时间
     **/
    private java.sql.Timestamp createTime;
    /**
     * 版本
     **/
    private Integer version;

    /**
     * 方法: 取得主键
     *
     * @return java.lang.Integer 主键
     */
    @Id
    @GeneratedValue(generator = "tss_member_return_class_recordIDGenerator", strategy = GenerationType.AUTO)
    @GenericGenerator(name = "tss_member_return_class_recordIDGenerator", strategy = "uuid")
    @Column(name = "id", nullable = false, length = 32)
    public String getId() {
        return this.id;
    }

    /**
     * 方法: 设置主键
     *
     * @param id 主键
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 方法: 取得会员Id
     *
     * @return java.lang.Integer 会员Id
     */
    @Column(name = "memberId", nullable = true, length = 11)
    public String getMemberId() {
        return this.memberId;
    }

    /**
     * 方法: 设置会员Id
     *
     * @param memberId 会员Id
     */
    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    /**
     * 方法: 取得创建时间
     *
     * @return java.sql.Timestamp 创建时间
     */
    @Column(name = "createTime", nullable = true, length = 19)
    public java.sql.Timestamp getCreateTime() {
        return this.createTime;
    }

    /**
     * 方法: 设置创建时间
     *
     * @param createTime 创建时间
     */
    public void setCreateTime(java.sql.Timestamp createTime) {
        this.createTime = createTime;
    }

    /**
     * 方法: 取得版本
     *
     * @return java.lang.Integer 版本
     */
    @Version
    @Column(name = "version", nullable = true, length = 11)
    public Integer getVersion() {
        return this.version;
    }

    /**
     * 方法: 设置版本
     *
     * @param version 版本
     */
    public void setVersion(Integer version) {
        this.version = version;
    }

    @Column(name = "returnType", nullable = true, length = 11)
    public Integer getReturnType() {
        return returnType;
    }

    public void setReturnType(Integer returnType) {
        this.returnType = returnType;
    }
    @Column(name = "attendClassId", nullable = true, length = 32)
    public String getAttendClassId() {
        return attendClassId;
    }

    public void setAttendClassId(String attendClassId) {
        this.attendClassId = attendClassId;
    }
}